package com.example.demonstrate.wang.junit;

import com.example.demonstrate.wang.service.impl.WebSocketServerSupport;
import org.springframework.stereotype.Component;

import javax.websocket.server.ServerEndpoint;

/**
 * @Author along
 * @Date 2024/6/12 15:30
 * @Description 继承WebSocketServerSupport轻松实现websocket,亦可以重写WebSocketServerSupport类里的方法
 */

@ServerEndpoint(value = "/ws/{userId}")
@Component
public class WebSocketServer extends WebSocketServerSupport {

}
